package com.example.handler;

import com.example.nio.message.Request;
import com.example.nio.message.Response;
import com.example.nio.tranport.mina.handler.RequestHandler;
import com.example.nio.utils.IdUtil;
import org.springframework.stereotype.Service;

/**
 * @author: chentao
 * @data 2025年02月02日 下午8:53
 */
@Service
public class RequestHandlerImpl implements RequestHandler {

    @Override
    public Response handleRequest(Request request) {
        Response response = new Response();
        response.setData(IdUtil.getId());
        response.setRequest(request);
        return response;
    }
}
